package com.example.storage.controller;

import com.example.storage.api.StorageApi;
import com.example.storage.service.StorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StorageController implements StorageApi {

    @Autowired
    private StorageService storageService;

    @Override
    public Boolean deduct(String commodityCode, int count) {
        return storageService.deduct(commodityCode, count);
    }
}
